<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn">
<%@ include file="/WEB-INF/view-system/include/contentTaglib.jsp"%>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<script src="${ctx}/static-system/js/log/log.js" type="text/javascript"></script>
	<title>登录日志</title>
</head>
<body>
	<tags:dataSet id="logSet">
		<tags:dataField name="staffId" display="员工工号"></tags:dataField>
		<tags:dataField name="staffName" display="员工姓名"></tags:dataField>
		<tags:dataField name="loginIp" display="登录IP"></tags:dataField>
		<tags:dataField name="loginDate" display="登录时间"></tags:dataField>
		<tags:dataField name="roleName" display="登录角色"></tags:dataField>
	</tags:dataSet>
	<tags:boards>
		<tags:board width="100%" boardTitle="日志管理">
			<form id="logQueryFrm" class='m-cust'>
				<div class="row form-group">
					<div class="col-md-4">
			  			<div class="col-md-4 col-sm-4">
			  				<label class='m-label'>员工姓名：</label>
			  			</div>
						<div class="col-md-8 col-sm-8">
							<input name="staffName" class="form-control m-input" id="staffName" type="text">
						</div>
					</div>
					<div class="col-md-4">
			  			<div class="col-md-4 col-sm-4">
			  				<label class='m-label'>登录角色：</label>
			  			</div>
						<div class="col-md-8 col-sm-8">
							<input name="roleName" class="form-control m-input" id="roleName" type="text">
						</div>
					</div>
				</div>
				<div class="form-group">
				   	<button class="btn btn-warning m-btn" type="button" onclick="SysLoginLogPage.query()">查询</button>
				  	<button class="btn btn-default m-btn" type="reset" >重置</button>
				 </div>
				<tags:ajax id="queryLogAjax" formQuery="#logQueryFrm" formSubmit="true" url="${ctx }/sys/logMgr/findAll" type="get"/>
				<tags:datatable id="logDatatable" storage="false" ajax="queryLogAjax" pagination="logPagination" dataSet="logSet" checkable="true"
					striped="true" cutLine="true" />
				<tags:pagination pageSize="10" id="logPagination" pageChoice="10" datatable="logDatatable" />
			</form>
		</tags:board>
	</tags:boards>
</body>